<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
	<meta name="format-detection" content="telephone=no" />
	<title>速翔网络</title>
	<link rel="stylesheet" type="text/css" href="../c/aui.css" />
	<link rel="stylesheet" type="text/css" href="../c/suxiangw.css" />
	<style>
		body {
			background: #161823;
		}

		#sx-header {
			background: #161823 !important;
		}

		.aui-btn img {
			width: 2rem;
		}

		.aui-btn {
			color: #fff;
		}
	</style>
</head>
<body>
	<header class="aui-bar aui-bar-nav" id="sx-header">
		<a class="aui-pull-left aui-btn" tapmode onclick="_close()"><img src="../i/left.png" /></a>
		<div class="aui-title">广告</div>
	</header>
</body>
<script type="text/javascript" src="../j/api.js"></script>
<script type="text/javascript">
	apiready = function() {
		urls();
		url = api.pageParam['url'];
		var header = $api.byId('sx-header');
		$api.fixStatusBar(header);
		var headerPos = $api.offset(header);
		headerh = headerPos.h
		browser = api.require('webBrowser');
		urlW();
	}

	function urlW() {
		browser.openView({
			url: url,
			rect: {
				x: 0,
				y: headerh,
				w: 'auto',
				h: 'auto'
			}
		}, function(ret, err) {

		});
	}

	function historyBack() {
		browser.historyBack(function(ret, err) {
			if (!ret.status) {
				_close(3);
			}
		});
	}

	function asdas() {
		_close(3);
	}

	function CheckUrl(url) {
		var reg = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/;
		if (!reg.test(url)) {
			return false;
		} else {
			return true;
		}
	}
</script>

</html>
